package com.corona.game;

import com.corona.Game;

/* compiled from: Action.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/RunCode.class */
public class RunCode extends Action {
    Runnable runnable;

    public RunCode(Runnable runnable, Action nextAction) {
        super(new Object[0]);
        this.runnable = runnable;
        this.nextAction = nextAction;
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        this.runnable.run();
        game.actionStack.remove(this);
        game.insertAction(this.nextAction);
    }
}
